﻿	config.initpage = function(gridNode) {		//点击“已完成”按钮，更改合同状态		var grid = gridNode.page;		var event = gridNode.event;		event.on('beforecustom', function(ge) {			var records = ge.grid.getSelectionModel().getSelections();			if (!JxUtil.selectone(records)) return false;					var contract_status = records[0].get('contract__contract_status');			if (contract_status != '3') {				JxHint.alert('选择的合同不是已生效状态，不能完成！');					return false;			}		});			}